<template>
	<view>
		<view class="notice">
			<u-alert type="primary" :description="description"></u-alert>
		</view>
		<view class="content">
			<!-- <u-parse :content="content"></u-parse> -->
			<u--textarea autoHeight v-model="content" placeholder="正在生成起诉状" maxlength="14000"></u--textarea>
		</view>

		<view class="content_btn" style="margin-bottom: 40px;">
			<u-button text="复制" type="success" style="width: 120px;" @click="copy(content)"></u-button>
		</view>
		<view class="zhanwei" style="height: 40px;">
			
		</view>
		

	</view>
</template>

<script>
	import $H from '@/common/js/request.js';

	export default {
		data() {
			return {
				id: '',
				mail: '',
				Order: {},
				Goods: {},
				timeData: {},
				description: 'AI 维权律师每天为大家生成 200+ 封起诉书，希望大家能支持这个项目，让更多人可以长期受益。谢谢！',
				content: '',
			};
		},
		onLoad() {
			let message = uni.getStorageSync('billa')
			this.content = message[0].message.content
		},
		methods: {
			copy(content) {
				uni.setClipboardData({
					data: content,
					success: function() {
						uni.showToast({
							title: '复制成功',
							icon: 'success',
							duration: 2000
						});
					}
				});
			}
		},
	}
</script>

<style>
	page {
		background: #fff;
	}
</style>
<style lang="scss" scoped>
	.notice {
		margin: 15px;
	}

	.content {
		margin: 15px;
	}

	.content_btn {
		margin: 15px;
	}
</style>